.class Lcom/netease/newsreader/activity/VoteSubmit$2;
.super Landroid/os/Handler;
.source "VoteSubmit.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/VoteSubmit;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/VoteSubmit;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/VoteSubmit;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    .line 214
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public dispatchMessage(Landroid/os/Message;)V
    .locals 8
    .parameter "msg"

    .prologue
    const/16 v7, 0xc8

    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 217
    iget v2, p1, Landroid/os/Message;->what:I

    packed-switch v2, :pswitch_data_0

    .line 244
    :goto_0
    return-void

    .line 219
    :pswitch_0
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    const-string v3, "VOTE"

    const-string v4, "VOTE_SUCCESS"

    invoke-static {v2, v3, v4}, Lcom/netease/mobileanalysis/MobileAgent;->setEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 221
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v2}, Lcom/netease/newsreader/activity/VoteSubmit;->access$0(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/app/ProgressDialog;

    move-result-object v2

    invoke-virtual {v2}, Landroid/app/ProgressDialog;->cancel()V

    .line 222
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    const-string v3, "\u6295\u7968\u6210\u529f\uff01"

    invoke-static {v2, v3, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    .line 223
    .local v0, t:Landroid/widget/Toast;
    invoke-virtual {v0, v6, v5, v7}, Landroid/widget/Toast;->setGravity(III)V

    .line 224
    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 225
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v2, v6}, Lcom/netease/newsreader/activity/VoteSubmit;->access$1(Lcom/netease/newsreader/activity/VoteSubmit;Z)V

    .line 226
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v2, v6}, Lcom/netease/newsreader/activity/VoteSubmit;->access$2(Lcom/netease/newsreader/activity/VoteSubmit;Z)V

    .line 230
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-virtual {v2}, Lcom/netease/newsreader/activity/VoteSubmit;->updateView()V

    goto :goto_0

    .line 233
    .end local v0           #t:Landroid/widget/Toast;
    :pswitch_1
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v2}, Lcom/netease/newsreader/activity/VoteSubmit;->access$0(Lcom/netease/newsreader/activity/VoteSubmit;)Landroid/app/ProgressDialog;

    move-result-object v2

    invoke-virtual {v2}, Landroid/app/ProgressDialog;->cancel()V

    .line 234
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    const-string v3, "\u5bf9\u4e0d\u8d77\uff0c\u6295\u7968\u5931\u8d25\uff01"

    invoke-static {v2, v3, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    .line 235
    .local v1, t1:Landroid/widget/Toast;
    invoke-virtual {v1, v6, v5, v7}, Landroid/widget/Toast;->setGravity(III)V

    .line 236
    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 237
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-static {v2, v5}, Lcom/netease/newsreader/activity/VoteSubmit;->access$1(Lcom/netease/newsreader/activity/VoteSubmit;Z)V

    .line 241
    iget-object v2, p0, Lcom/netease/newsreader/activity/VoteSubmit$2;->this$0:Lcom/netease/newsreader/activity/VoteSubmit;

    invoke-virtual {v2}, Lcom/netease/newsreader/activity/VoteSubmit;->updateView()V

    goto :goto_0

    .line 217
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
